home *** CD-ROM | disk | FTP | other *** search
- /****i* SOURCE_FILE/INFO
- *
- * NAME
- * Contract.js
- *
- * USAGE
- * Part of Netobjects JavaScript Library.
- *
- * COPYRIGHT
- * Copyright ⌐ 2000-2005 Website Pros, Inc.
- * All Rights Reserved.
- *
- * This is an unpublished work protected by Website Pros, Inc.
- * as a trade secret, and is not to be used or disclosed except as
- * expressly provided in a written license agreement executed by
- * you and Website Pros, Inc.
- *
- * <copyright@websitepros.com>
- *
- * NOTES
- * JavaScript code.
- *
- *****/
- if (!IS.isModuleInitialized("IS.NOF.Contract"))
- {
- /****h* NOF_JavaScript_Library/NOF.Contract
- *
- * NAME
- * NOF.Contract
- *
- * DESCRIPTION
- *
- *
- ****/
- function NOF_Contract(){
- this.Require = function Require( testCond, msg ){
- //if (!testCond)
- // throw (new NOF.Exception("PRECONDITION FAILED " + msg));
- }
-
- this.Assert = function Assert( testCond, msg ){
- //if (!testCond)
- // throw (new NOF.Exception("ASSERTION FAILED " + msg));
- }
-
- this.Ensure = function Ensure( testCond, msg ){
- //if (!testCond)
- // throw (new NOF.Exception("POSTCONDITION FAILED " + msg));
- }
- }
-
- NOF.addVariable("Contract", new NOF_Contract() );
- }